package com.example.sp01.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "sc")
public class sc {
    @Id
    @Column(name = "Sno")
    private Integer sno;
    
    @Id
    @Column(name = "Cno")
    private Integer cno;
    
    @Column(name = "Grade")
    private String grade; // 成绩等级
    
    @Column(name = "mark")
    private String mark; // 具体成绩

    public sc() {}

    public sc(Integer sno, Integer cno, String grade, String mark) {
        this.sno = sno;
        this.cno = cno;
        this.grade = grade;
        this.mark = mark;
    }

    // Getter和Setter
    public Integer getSno() {
        return sno;
    }

    public void setSno(Integer sno) {
        this.sno = sno;
    }

    public Integer getCno() {
        return cno;
    }

    public void setCno(Integer cno) {
        this.cno = cno;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }
}